<template>
  <div class="not-found">
    <el-card class="card" shadow="hover">

      <h2 class="error-message">Oops! 页面不存在</h2>
      <p class="description">您要找的页面可能已经被移动或删除。</p>
      <el-button type="primary" @click="goHome">返回首页</el-button>
      <br>
      <img src="@/assets/images/f5bfed6b02efcdcab495dad40b41dac.png" alt="404 illustration" class="illustration" />
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'NotFoundPage',
  methods: {
    goHome() {
      this.$router.push('/');
    }
  }
}
</script>

<style scoped>
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
}

.card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background-color: white;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.error-code {
  font-size: 96px;
  color: #f56c6c;
}

.error-message {
  margin: 20px 0;
  font-size: 24px;
  color: #333;
}

.description {
  font-size: 16px;
  color: #666;
  margin-bottom: 20px;
}

.illustration {
  width: 300px; /* 可根据需要调整大小 */
  margin-top: 20px;
}
</style>
